package com.rahwi.rahwi_server.DefineEntity;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rahwi.rahwi_server.vo.data.IPost;

import java.sql.Date;
import java.time.Period;

/**
 * Created by dingning on 2021-12-15 20:49.
 * 主页的帖子的自定义返回对象
 */
public class HomePost{

    private int id;
    private int poster_id;
    private String title;
    private String poster_logo;
    private String poster_name;
    private String[] image;
    private String text;
    private int showindex;
    private boolean flag;
    private boolean poster_is_joined;
    private Date created_at;
    private String tag;
    private int comment_count;

    public void HomePost(
            int id,int poster_id,String title,String poster_logo,String poster_name,String[] image,
            String text, int showindex, boolean flag, boolean poster_is_joined, Date created_at, String tag, int comment_count){
        this.id = id;
        this.poster_id = poster_id;
        this.title = title;
        this.poster_logo = poster_logo;
        this.poster_name = poster_name;
        this.image = image;
        this.text = text;
        this.showindex = 1;
        this.flag = true;
        this.poster_is_joined = poster_is_joined;
        this.created_at = created_at;
        this.tag = tag;
        this.comment_count = comment_count;
    }

    public void HomePost(){
        this.showindex = 1;
        this.flag = true;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPoster_id() {
        return poster_id;
    }

    public void setPoster_id(int poster_id) {
        this.poster_id = poster_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPoster_logo() {
        return poster_logo;
    }

    public void setPoster_logo(String poster_logo) {
        this.poster_logo = poster_logo;
    }

    public String getPoster_name() {
        return poster_name;
    }

    public void setPoster_name(String poster_name) {
        this.poster_name = poster_name;
    }

    public String[] getImage() {
        return image;
    }

    public void setImage(String[] image) {
        this.image = image;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getShowindex() {
        return showindex;
    }

    public void setShowindex(int showindex) {
        this.showindex = showindex;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public boolean isPoster_is_joined() {
        return poster_is_joined;
    }

    public void setPoster_is_joined(boolean poster_is_joined) {
        this.poster_is_joined = poster_is_joined;
    }

    public Date getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public int getComment_count() {
        return comment_count;
    }

    public void setComment_count(int comment_count) {
        this.comment_count = comment_count;
    }


}

